<%--
  Created by IntelliJ IDEA.
  User: abb
  Date: 2018-07-08
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script>
        $(function () {
            $('#systemlogDataGrid').datagrid({
                url:'/systemlog/list',
                columns:[[
                    {field:'opUser',title:'登陆用户',width:100,formatter:formatterUser},
                    {field:'opTime',title:'操作时间',width:100},
                    {field:'opIp',title:'操作IP',width:100},
                    {field:'function',title:'使用功能',width:100},
                    {field:'params',title:'操作参数',width:100}


                ]],
                fitColumns:true,
                fit:true,
                pagination:true,
                singleSelect:true,
                toolbar:"#systemlogToolBar"
            });



        })
        function formatterUser(value,row,index) {
            return value?value.username:"";
        }


        function reload() {
            $("#systemlogDataGrid").datagrid("reload");
        }


    </script>
</head>
<body>


<div id="systemlogToolBar">

    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>
</div>


<table id="systemlogDataGrid"></table>

</body>
</html>
